package com.opennews.openplatform.dto.income.expense.detailt.ype;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public abstract class BasicIncomeExpenseDetailTypeDto extends IncomeExpenseDetailTypeWithNameDto {
    @NotBlank(message = "title can't be blank")
    @Size(max = 50, message = "title must be at most 50 characters")
    private String title;

    @Size(max = 50, message = "subtitle must be at most 50 characters")
    private String subtitle;

    @NotNull(message = "analysisIncluded can't be null")
    private Boolean analysisIncluded;
}
